using System;
using UnityEngine;
using EventBehaviorTree;

namespace BuffSystem
{
    [Serializable]
    public class Unregister : CarrierComponent, IAction
    {
        public Unregister(string occupantKey, OccupantType occupantType) : base(occupantKey, occupantType) { }
        public Unregister(string occupantKey, string occupantType) : base(occupantKey, occupantType) { }
        public void Action()
        {
            //Debug.Log(GetType() + "/" + _occupantType + "/" + _occupantKey);
            _target.Unregister(_occupantKey.ToString(), _occupantType);
        }
    }
}
